<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul id="container"></ul>

    <script>
        let ul = document.getElementById('container');
        let total = 10000
        for (let i = 0; i < total; i++) {
            let li = document.createElement('li');
            li.textContent = `Item ${i + 1}`;
            ul.appendChild(li);
        }

    </script>
</body>

</html>